﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using DomainDriver.DomainModeling.GenericUnitTesting;
using AutomotivePricingModel.Brands;

namespace AutomotivePricingModel.UnitTests.DomainObjects
{
    [TestFixture]
    public class BrandTests : DomainObjectTestFixture<Guid, Brand>
    {
        protected override Brand CreateUniqueDomainObject()
        {
            return new Brand();
        }

        protected override ICollection<DomainObjectModifier<Guid, Brand>> GetDomainObjectModifiers()
        {
            List<DomainObjectModifier<Guid, Brand>> modifiers = new List<DomainObjectModifier<Guid, Brand>>();
            modifiers.Add((Brand domainObject) => domainObject.BrandCreationDate = m_DateTimeUpdateValue);
            modifiers.Add((Brand domainObject) => domainObject.BrandCreationDate = null);
            modifiers.Add((Brand domainObject) => domainObject.CountryOfOrigin = m_GuidUpdateValue);
            modifiers.Add((Brand domainObject) => domainObject.CountryOfOrigin = null);
            modifiers.Add((Brand domainObject) => domainObject.Name += m_StringUpdateValue);
            modifiers.Add((Brand domainObject) => domainObject.Name = null);
            modifiers.Add((Brand domainObject) => domainObject.OwningCompany = m_GuidUpdateValue);
            modifiers.Add((Brand domainObject) => domainObject.OwningCompany = null);
            return modifiers;
        }

        [Test]
        public override void VerifyDomainObjectFunctionality()
        {
            base.VerifyDomainObjectFunctionality();
        }
    }
}